package com.example.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.dto.UserStatsResponse;
import com.example.demo.entity.Exercise;
import com.example.demo.entity.Question;
import com.example.demo.entity.UserAnswer;


import java.util.List;

public interface ExerciseService extends IService<Exercise> {
    List<Exercise> getExercisesBySubject(String subject);
    List<Question> getQuestionsByExerciseId(int exerciseId);
    void submitAnswers(List<UserAnswer> userAnswers);
    UserStatsResponse getUserStats(int userId);
    void updateUserStats(int userId, int score);

    List<Question> getQuestionsBySubject(String subject);
}
